Skip to content

Conversation

@arielb1
Copy link
Contributor

@arielb1 arielb1 commented May 28, 2014

Fix issue #13933 in a few files. A more complete fix would require core::raw::MutSlice.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the convention would be for something like seek_inner.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Or seek_common like below.)

The IO libraries casted self to mut so they can pass it to seek(SEEK_CUR, 0).
Fix this by introducing a private seek function that takes &self
  - of course one should be careful with it if he lacks an
    exclusive reference to self.
@arielb1
Copy link
Contributor Author

arielb1 commented May 28, 2014

Improved indentation

@alexcrichton
Copy link
Member

I think that due to the last commit message, github may auto-close #13933, but there are still some FIXMEs associated with #13933, so could you tweak it to just reference #13933 instead of saying that it closes it?

directly use the internal pointer instead.
@arielb1
Copy link
Contributor Author

arielb1 commented May 28, 2014

Fixed. The rest of #13933 is waiting on #14484.

@arielb1
Copy link
Contributor Author

arielb1 commented May 28, 2014

I will do Arena and Slice in separate commits

bors added a commit that referenced this pull request May 29, 2014
Fix issue #13933 in a few files. A more complete fix would require core::raw::MutSlice.
@bors bors closed this May 29, 2014
@bors bors merged commit 2e8bc99 into rust-lang:master May 29, 2014
@arielb1 arielb1 deleted the fix-13933 branch October 12, 2014 17:45
@arielb1 arielb1 restored the fix-13933 branch October 12, 2014 17:45
@arielb1 arielb1 deleted the fix-13933 branch October 12, 2014 17:45
bors added a commit to rust-lang-ci/rust that referenced this pull request Jun 5, 2023
…=Veykril

fix: insert whitespace between text and pound

Because `text#`, `text"..."`, and `text'...'` are [reserved syntax since Rust 2021][guide]. Note that the latter two are already handled correctly.

Fixes rust-lang#14487

[guide]: https://doc.rust-lang.org/edition-guide/rust-2021/reserving-syntax.html
flip1995 pushed a commit to flip1995/rust that referenced this pull request Apr 3, 2025
The `unnecessary_filter_map` and `unnecessary_find_map` lints were
making partial suggestions, proposing to replace the whole expression by
only the method name, or a subexpression which contained explicit
placeholders.

Since even `MaybeIncorrect` suggestions must generate code that
compiles, this changes those lints to recommandation lints with no code
suggestion.

Fixes rust-lang#14486

changelog: [`unnecessary_find_map`, `unnecessary_filter_map`]: do not
make suggestions that will not compile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants